﻿using ChatGPTIntegrationProject.ExternalAPI.Interfaces.Api;

using Refit;

namespace ChatGPTIntegrationProject.ExternalAPI.Extensions
{
    public static class RefitServiceCollectionExtensions
    {
        public static void AddRefitClients(this IServiceCollection services)
        {
            services.AddRefitClient<IOpenRouterAIApi>()
                .ConfigureHttpClient(c =>
                {
                    c.BaseAddress = new Uri("https://openrouter.ai");
                });
        }
    }
}